package com.zzyl.nursing.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.Floor;
import com.zzyl.nursing.vo.FloorRoomBedTreeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 楼层Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-17
 */
@Mapper
public interface FloorMapper extends BaseMapper<Floor> {
    /**
     * 查询楼层列表
     *
     * @param floor 楼层
     * @return 楼层集合
     */
    List<Floor> selectFloorList(Floor floor);

    /**
     * 根据床位状态查询所有楼层对应房间的床位（3层树结构）
     *
     * @param status 床位状态
     * @return 楼层房间床位树结构
     */
    List<FloorRoomBedTreeVo> getAllFloorByStatus(@Param("status" ) Integer status);
}
